#ifndef _LED_H
#define _LED_H
#ifdef __cplusplus
 extern "C" {
#endif

#include "user.h"

extern __IO u16 pwm_y;
extern __IO u16 pwm_w;
  
extern __IO u16 pwm_y1;
extern __IO u16 pwm_w1;
extern __IO u16 pwm_y2;
extern __IO u16 pwm_w2;
extern __IO u16 pwm_y3;
extern __IO u16 pwm_w3;
extern __IO u16 pwm_y4;
extern __IO u16 pwm_w4;
extern __IO u8 eff_randno;


#define 	PWM_MAX  (400)

extern void LED_Effect();
extern void eff_InitTimer();



#define W_Pwm(a) ( pwm_w =(a) 	)
#define Y_Pwm(a) ( pwm_y =(a)	)

#ifdef __cplusplus
}
#endif
#endif
